<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
       div{
           width: 300px;
           height: 300px;
           background-color: aqua;
           position: absolute;
           top:200px;
           left: 200px;
           transition: left 3s linear;
           /* -moz-animation: height 3s linear ; */
       }
       div:active{
           left: 1100px;

       }
    
    </style>
</head>
<body>
    <div>   </div>
</body>
</html>